import axios from 'axios'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
//导入图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
import App from './App.vue'
import router from './router'

import '@/assets/css/main.css'

import '@/plugins/axios.config.js'
const app = createApp(App)
//全局注册图表组件
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
  }
app.use(createPinia())
app.use(router)

app.mount('#app')
